// Copyright 2017 Baidu Inc. All Rights Reserved.
// Author: Su Hao (suhao@baidu.com)
//
// Description: memory adapter implementation

#include "baidu_ca_memory_adapter.h"
#include "heap_monitor.h"

void* bca_memory_alloc(bca_context ctx, bca_size_t size) {
    return MALLOC(size, CA);
}

void* bca_memory_realloc(bca_context ctx, void* ptr, bca_size_t size) {
    return REALLOC(ptr, size, CA);
}

void bca_memory_free(bca_context ctx, void* ptr) {
    return FREE(ptr);
}

